package com.boot.exception;

import lombok.Data;

@Data
public class BusinessException extends RuntimeException{
    private static final long serialVersionUID = 1L;
    private Integer code;
    private String msg;

    public BusinessException(String message, Integer code) {
        super(message);
        this.msg = message;
        this.code = code;
    }
}
